import request from '@/utils/request'

var Str = '/Role_';

const api = {
    getrole(data) {
      return request({
        url: Str+'list',
        method: 'post',
        data: data
      })
    },
    addrole(data) {
      return request({
        url: Str+'save',
        method: 'post',
        data: data
      })
    },
    updaterole(data) {
      return request({
        url: Str+'update',
        method: 'post',
        data: data
      })
    },
    delrole(data) {
      return request({
        url: Str+'del',
        method: 'post',
        data: data
      })
    },
    frostrole(data) {
      return request({
        url:  Str+'frost',
        method: 'post',
        data: data
      })
    },
}

export default api;
